package com.zjj4;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class JCLLOG4JTest {
    public static Log log= LogFactory.getLog(JCLLOG4JTest.class);



    public static String test(String msg) {
        // 记录debug级别的信息
        log.debug(log.getClass().getName()+" This is debug message."+msg);
        // 记录info级别的信息
        log.info(log.getClass().getName()+" This is info message."+msg);
        // 记录error级别的信息
        log.error(log.getClass().getName()+" This is error message."+msg);
        return "";
    }
}
